package org.xukai.rest.model;

/**
 * @author xukai
 * @desc
 * @date 2016-09-14-下午 3:02
 */
public class Role {

    private Long id;

    private String name;

    private String level;

    private User user;

    public Long getId() {
        return id;
    }

    public Role() {
        User user = new User();
        user.setChineseName("徐开");
        user.setUserId(15778787L);
        this.user = user;
    }

    public Role(Long id, String name, String level) {
        this.id = id;
        this.name = name;
        this.level = level;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", level='" + level + '\'' +
                ", user=" + user +
                '}';
    }
}
